Skip to content

Make prepareRelease output deterministic - #934

Merged
ngnatng merged 2 commits into
mainfrom
fix_release_diff_noise
Nov 16, 2026
Merged

ngnatng merged 2 commits into
mainfrom
fix_release_diff_noise

Conversation

@ngnatng

@ngnatng ngnatng commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

prepareRelease produced noisy diffs by reordering files:

  • updateVersion rewrote gradle.properties with Properties.store(), which reorders keys and adds a timestamp. It now replaces only the version line.
  • The license-report plugin writes dependencies in HashSet order, which changes between runs. generateLicenses now re-renders its by-dependency reports with the plugin's own LicenseReporter, sorted by dependency name.

third_party/LICENSES.* are regenerated in sorted order; their contents are unchanged.

prepareRelease produced diffs unrelated to the release:

- updateVersion rewrote gradle.properties with Properties.store(), which
  reorders keys and adds a timestamp. It now replaces only the version line.
- The license-report plugin writes dependencies in HashSet order, which
  changes between runs. generateLicenses now re-renders its by-dependency
  reports with the plugin's own LicenseReporter, sorted by dependency name.

third_party/LICENSES.* are regenerated in sorted order; their contents are
unchanged.
@ngnatng
ngnatng requested review from a team as code owners November 13, 2026 21:19
@ngnatng ngnatng changed the title Make release prep output deterministic Make prepareRelease output deterministic Nov 13, 2026
@ngnatng
ngnatng requested review from Raibaz and removed request for sundquist November 13, 2026 21:20
@jradcliff

Copy link
Copy Markdown
Member

@ngnatng , could you rebase or merge to bring this branch up to date?

Change-Id: Ia233529de89682cbb4d4f80b5a7f32f46c800d47
@ngnatng ngnatng added the kokoro:force-run This label is required to run a kokoro presubmit if an external contributor sends a PR. label Nov 16, 2026
@kokoro-team kokoro-team removed the kokoro:force-run This label is required to run a kokoro presubmit if an external contributor sends a PR. label Nov 16, 2026
@ngnatng
ngnatng merged commit cf7fd8b into main Nov 16, 2026
8 checks passed
@ngnatng
ngnatng deleted the fix_release_diff_noise branch November 16, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants